package com.yhd.mischedule.model.service;

import com.yhd.mischedule.model.domain.SysJob;
import com.yhd.mischedule.model.mapper.SysJobMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author yhd
 * @createtime 2021/3/11 19:21
 */
@Service
public class SysJobService {

    @Resource
    private SysJobMapper sysJobMapper;


    public int getJobCount() {
        return sysJobMapper.getJobCount();
    }


    public List<SysJob> querySysJobList(Map<String, String> map) {
        return sysJobMapper.querySysJobList(map);
    }


    public int insertSelective(SysJob record) {
        return sysJobMapper.insertSelective(record);
    }


    public int deleteByPrimaryKey(Integer id) {
        return sysJobMapper.deleteByPrimaryKey(id);
    }


    public SysJob selectByPrimaryKey(Integer id) {
        return sysJobMapper.selectByPrimaryKey(id);
    }


    public SysJob selectByBean(SysJob bean) {
        return sysJobMapper.selectByBean(bean);
    }


    public int updateByPrimaryKeySelective(SysJob bean) {
        return sysJobMapper.updateByPrimaryKeySelective(bean);
    }

}
